<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    {% block title %}
        <title>后台布局页面</title>
    {% endblock %}
    <!-- Bootstrap core CSS -->
    <link href="{{ url_for('static', filename='backend/css/bootstrap.min.css') }}" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="{{ url_for('static', filename='backend/css/dashboard.css') }}" rel="stylesheet">
    {% block css %}{% endblock %}

</head>

<body>
<nav class="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow">
    <a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#">管理后台</a>
    <ul class="navbar-nav px-3">
        <li class="nav-item text-nowrap">
            <a class="nav-link" href="{{ url_for('admin.admin_logout') }}">退 出</a>
        </li>
    </ul>
</nav>

<div class="container-fluid">
    <div class="row">
        <nav class="col-md-2 d-none d-md-block bg-light sidebar">
            <div class="sidebar-sticky">
                <ul class="nav flex-column">
                    <li class="nav-item">
                        <a class="nav-link" href="{{ url_for('admin.admin_index') }}">
                            <span data-feather="home"></span>
                            主页 <span class="sr-only">(current)</span>
                        </a>
                    </li>
{#                    <li class="nav-item">#}
{#                        <a class="nav-link" href="{{ url_for('admin.admin_user_list') }}">#}
{#                            <span data-feather="file"></span>#}
{#                            用户管理#}
{#                        </a>#}
{#                    </li>#}
                    <li class="nav-item">
                        <a class="nav-link" href="{{ url_for('admin.admin_category_list') }}">
                            <span data-feather="file"></span>
                            分类管理
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="{{ url_for('admin.admin_post_list') }}">
                            <span data-feather="file"></span>
                            文章管理
                        </a>
                    </li>
{#                    <li class="nav-item">#}
{#                        <a class="nav-link" href="{{ url_for('admin.admin_comment_list') }}">#}
{#                            <span data-feather="file"></span>#}
{#                            评论管理#}
{#                        </a>#}
{#                    </li>#}
                    <li class="nav-item">
                        <a class="nav-link" href="{{ url_for('admin.admin_admin_list') }}">
                            <span data-feather="file"></span>
                            管理员管理
                        </a>
                    </li>
{#                    <li class="nav-item">#}
{#                        <a class="nav-link" href="{{ url_for('admin.admin_role_list') }}">#}
{#                            <span data-feather="file"></span>#}
{#                            角色管理#}
{#                        </a>#}
{#                    </li>#}
{#                    <li class="nav-item">#}
{#                        <a class="nav-link" href="{{ url_for('admin.admin_auth_list') }}">#}
{#                            <span data-feather="file"></span>#}
{#                            权限管理#}
{#                        </a>#}
{#                    </li>#}
{#                    <li class="nav-item">#}
{#                        <a class="nav-link" href="admin-animation.html">#}
{#                            <span data-feather="file"></span>#}
{#                            动漫管理#}
{#                        </a>#}
{#                    </li>#}
{#                    <li class="nav-item">#}
{#                        <a class="nav-link" href="admin-carte.html">#}
{#                            <span data-feather="file"></span>#}
{#                            名片管理#}
{#                        </a>#}
{#                    </li>#}
{##}
{#                    <li class="nav-item">#}
{#                        <a class="nav-link" href="admin-message.html">#}
{#                            <span data-feather="file"></span>#}
{#                            消息管理#}
{#                        </a>#}
{#                    </li>#}
                </ul>
            </div>
        </nav>
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
            {% block main %}{% endblock %}
        </main>
    </div>
</div>
<script src="{{ url_for('static', filename='backend/js/jquery-3.3.1.min.js') }}"></script>
<script src="{{ url_for('static', filename='backend/js/popper.min.js') }}"></script>
<script src="{{ url_for('static', filename='backend/js/bootstrap.min.js') }}"></script>
<script src="{{ url_for('static', filename='backend/js/feather.min.js') }}"></script>
<script>
    feather.replace()
</script>
{% block js %}{% endblock %}
</body>
</html>
